<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="res"></div>
    <script>
        const res = document.getElementById('res')
        let a = 4, b = 5;
        let c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2))
        res.innerHTML = c
    </script>
</body>

</html>